package com.chw.shop.controller;

import com.chw.common.diy.CommonData;
import com.chw.common.returnData.ReturnData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("brand")
public class BrandController {
    @Autowired
    private RedisTemplate redisTemplate;
    @RequestMapping("queryBrand")
    public ReturnData queryBrand(){
        Object o = redisTemplate.opsForValue().get("brand" + CommonData.PRO);
        return ReturnData.success(o);
    }
}
